﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="uc_ModifyInfo.aspx.cs" Inherits="HFWebApp.user.uc_ModifyInfo" %>
<%@ Register src="../Control/top.ascx" tagname="top" tagprefix="uc1" %>
<%@ Register src="../Control/end.ascx" tagname="end" tagprefix="uc2" %>
<%@ Register src="c_LeftMenu.ascx" tagname="c_LeftMenu" tagprefix="uc3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<title>用户管理中心_红法网</title>
<link href="<%=this.getDemain %>/Style/Style.css" rel="stylesheet" type="text/css" />
<link href="<%=this.getDemain %>/Style/CenterStyle.css" rel="stylesheet" type="text/css" />
<link href="<%=this.getDemain %>/CSS.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=this.getDemain %>/Scripts/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=this.getDemain %>/javascript/SwitchTags.js"></script>
<script type="text/javascript" src="<%=this.getDemain %>/Scripts/WebFunction.js"></script>
<script type="text/javascript">
    function modifyinfo() {
        var realname = $("#realname");
        var email = $("#email");
        var ask_provinceid = $("#ask_provinceid");
        var ask_cityid = $("#ask_cityid");
        var content = $("#content");
        $.getJSON(
            "/AjaxSource/UserModify.ashx",
            {
                action: "2",
                realname: realname.val(),
                email: email.val(),
                provinceid: ask_provinceid.val(),
                cityid: ask_cityid.val(),
                content: content.val(),
                rand: Math.floor(Math.random() * 10000).toString()
            },
            function (jsonData) {
                alert(jsonData.Message);
            }
        );
            return false;
    }
</script>
</head>

<body>
<uc1:top ID="top1" MenuClassID="1" focusLink1="focusLink" runat="server" />
<div id="c_BodyBox">
    <div class="c_LeftMenu">
        <uc3:c_LeftMenu ID="c_LeftMenu1" runat="server" />
    </div>
    <div class="c_RightContent">
        <h3>修改资料</h3>
        <div class="c_MessageBox">
            <ul>
            <form id="modifyForm" onsubmit="return modifyinfo();">
                <li>
                    <div class="c_MB_Left">真实姓名</div>
                    <div class="c_MB_Mid"><input name="realname" type="text" id="realname" value="<%=model.RealName %>" size="32" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">邮件</div>
                    <div class="c_MB_Mid"><input name="email" type="text" id="email" value="<%=model.Email %>" size="32" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">所在地</div>
                    <div class="c_MB_Mid"><select name="ask_provinceid" id="ask_provinceid" onchange="loadCity('ask_cityid' ,this.value)">
                  <option value="0">=省份=</option>
                  <asp:Repeater ID="Repeater1" runat="server"> 
                                <ItemTemplate>
                                    <option value="<%#Eval("ID") %>" <%#model.ProvinceID.ToString() == Eval("ID").ToString()?"selected=\"selected\"":"" %>><%#Eval("SName") %></option>
                                </ItemTemplate>
                            </asp:Repeater>
                </select>
                  <select name="ask_cityid" id="ask_cityid">
                    <option value="0">=城市=</option>
                    <asp:Repeater ID="Repeater2" runat="server">
                                <ItemTemplate>
                                    <option value="<%#Eval("ID") %>" <%#model.CityID.ToString() == Eval("ID").ToString()?"selected=\"selected\"":"" %>><%#Eval("CityName") %></option>
                                </ItemTemplate>
                              </asp:Repeater>
                </select></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li class="liFix2">
                    <div class="c_MB_Left">自我介绍</div>
                    <div class="c_MB_Mid"><textarea name="content" id="content" cols="40" rows="6"><%=model.Content %></textarea></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left"></div>
                    <div class="c_MB_Mid"><input id="Button1" type="submit" value="保存" /></div>
                    <div class="c_MB_Right"></div>
                </li>
            </form>
            </ul>
        </div>
    </div>
</div>
<uc2:end ID="end1" runat="server" />
</body>
</html>
